{% extends 'layout.html' %}
{% block maincontent%}
    <h2> 添加诗人modelform</h2>
    <form action="" method="post">
        <!-- django中防止csrf攻击的方式 -->
        {% csrf_token %}

        {{ form }}
        <div class='form-group'>
            <input class='btn btn-primary' type="submit" value='添加诗人'>
        </div>
    </form>
{% endblock %}